<<<<<<< .mine
/*AfroSchool
 * View.java
 */

package afroschool;

import org.jdesktop.application.Action;
import org.jdesktop.application.ResourceMap;
import org.jdesktop.application.SingleFrameApplication;
import org.jdesktop.application.FrameView;
import org.jdesktop.application.TaskMonitor;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.Timer;
import javax.swing.Icon;
import javax.swing.JDialog;
import javax.swing.JFrame;

/**
 * The application's main frame.
 */
public class AfroSchoolView extends FrameView {

    public AfroSchoolView(SingleFrameApplication app) {
        super(app);

        initComponents();

        // status bar initialization - message timeout, idle icon and busy animation, etc
        ResourceMap resourceMap = getResourceMap();
        int messageTimeout = resourceMap.getInteger("StatusBar.messageTimeout");
        messageTimer = new Timer(messageTimeout, new ActionListener() {
            public void actionPerformed(ActionEvent e) {
                statusMessageLabel.setText("");
            }
        });
        messageTimer.setRepeats(false);
        int busyAnimationRate = resourceMap.getInteger("StatusBar.busyAnimationRate");
        for (int i = 0; i < busyIcons.length; i++) {
            busyIcons[i] = resourceMap.getIcon("StatusBar.busyIcons[" + i + "]");
        }
        busyIconTimer = new Timer(busyAnimationRate, new ActionListener() {
            public void actionPerformed(ActionEvent e) {
                busyIconIndex = (busyIconIndex + 1) % busyIcons.length;
                statusAnimationLabel.setIcon(busyIcons[busyIconIndex]);
            }
        });
        idleIcon = resourceMap.getIcon("StatusBar.idleIcon");
        statusAnimationLabel.setIcon(idleIcon);
        progressBar.setVisible(false);

        // connecting action tasks to status bar via TaskMonitor
        TaskMonitor taskMonitor = new TaskMonitor(getApplication().getContext());
        taskMonitor.addPropertyChangeListener(new java.beans.PropertyChangeListener() {
            public void propertyChange(java.beans.PropertyChangeEvent evt) {
                String propertyName = evt.getPropertyName();
                if ("started".equals(propertyName)) {
                    if (!busyIconTimer.isRunning()) {
                        statusAnimationLabel.setIcon(busyIcons[0]);
                        busyIconIndex = 0;
                        busyIconTimer.start();
                    }
                    progressBar.setVisible(true);
                    progressBar.setIndeterminate(true);
                } else if ("done".equals(propertyName)) {
                    busyIconTimer.stop();
                    statusAnimationLabel.setIcon(idleIcon);
                    progressBar.setVisible(false);
                    progressBar.setValue(0);
                } else if ("message".equals(propertyName)) {
                    String text = (String)(evt.getNewValue());
                    statusMessageLabel.setText((text == null) ? "" : text);
                    messageTimer.restart();
                } else if ("progress".equals(propertyName)) {
                    int value = (Integer)(evt.getNewValue());
                    progressBar.setVisible(true);
                    progressBar.setIndeterminate(false);
                    progressBar.setValue(value);
                }
            }
        });
    }

    @Action
    public void showAboutBox() {
        if (aboutBox == null) {
            JFrame mainFrame = AfroSchoolApp.getApplication().getMainFrame();
            aboutBox = new AfroSchoolAboutBox(mainFrame);
            aboutBox.setLocationRelativeTo(mainFrame);
        }
        AfroSchoolApp.getApplication().show(aboutBox);
    }
    @Action
    public void showCountryForm() {
          JFrame mainFrame = AfroSchoolApp.getApplication().getMainFrame();
         if(this.contentf==null) this.contentf = new JFrame();
         this.contentf.getContentPane().add(new afroschool.gui.CountryForm());
         this.contentf.setAlwaysOnTop(true);       
         this.contentf.setLocationRelativeTo(mainFrame);
         contentf.setSize(400, 400);
         contentf.setVisible(true);     
    
    }
    
    @Action
     public void CallCoursForm() {
          JFrame mainFrame = AfroSchoolApp.getApplication().getMainFrame();
         if(this.contentf==null) this.contentf = new JFrame();
         this.contentf.getContentPane().add(new afroschool.gui.CoursForm());
         this.contentf.setAlwaysOnTop(true); 
         //this.contentf.
         this.contentf.setLocationRelativeTo(mainFrame);
         contentf.setSize(AfroSchoolApp.getApplication().getMainFrame().getWidth()*3/4, AfroSchoolApp.getApplication().getMainFrame().getHeight()*3/4);
         contentf.setVisible(true);
      
    }
    
    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        mainPanel = new javax.swing.JPanel();
        jPanel1 = new javax.swing.JPanel();
        jToolBar1 = new javax.swing.JToolBar();
        jToolBar2 = new javax.swing.JToolBar();
        jToolBar3 = new javax.swing.JToolBar();
        jToolBar4 = new javax.swing.JToolBar();
        MainPanel = new javax.swing.JPanel();
        menuBar = new javax.swing.JMenuBar();
        javax.swing.JMenu fileMenu = new javax.swing.JMenu();
        jMenu9 = new javax.swing.JMenu();
        jMenuItem13 = new javax.swing.JMenuItem();
        jMenuItem14 = new javax.swing.JMenuItem();
        jMenu11 = new javax.swing.JMenu();
        jMenuItem1 = new javax.swing.JMenuItem();
        jMenuItem2 = new javax.swing.JMenuItem();
        jMenuItem3 = new javax.swing.JMenuItem();
        jMenu6 = new javax.swing.JMenu();
        jMenuItem4 = new javax.swing.JMenuItem();
        jMenuItem5 = new javax.swing.JMenuItem();
        jMenuItem6 = new javax.swing.JMenuItem();
        jMenuItem7 = new javax.swing.JMenuItem();
        jMenu7 = new javax.swing.JMenu();
        jMenuItem8 = new javax.swing.JMenuItem();
        jMenuItem9 = new javax.swing.JMenuItem();
        jMenu8 = new javax.swing.JMenu();
        jMenuItem10 = new javax.swing.JMenuItem();
        jMenuItem11 = new javax.swing.JMenuItem();
        jMenuItem12 = new javax.swing.JMenuItem();
        jMenu1 = new javax.swing.JMenu();
        jMenuItem27 = new javax.swing.JMenuItem();
        jMenuItem28 = new javax.swing.JMenuItem();
        jMenuItem29 = new javax.swing.JMenuItem();
        javax.swing.JMenuItem exitMenuItem = new javax.swing.JMenuItem();
        javax.swing.JMenu helpMenu = new javax.swing.JMenu();
        jMenu10 = new javax.swing.JMenu();
        jMenuItem20 = new javax.swing.JMenuItem();
        jMenuItem22 = new javax.swing.JMenuItem();
        jMenu15 = new javax.swing.JMenu();
        jMenuItem25 = new javax.swing.JMenuItem();
        jMenuItem26 = new javax.swing.JMenuItem();
        jMenu12 = new javax.swing.JMenu();
        jMenuItem21 = new javax.swing.JMenuItem();
        jMenuItem19 = new javax.swing.JMenuItem();
        jMenu13 = new javax.swing.JMenu();
        jMenuItem15 = new javax.swing.JMenuItem();
        jMenuItem16 = new javax.swing.JMenuItem();
        jMenuItem17 = new javax.swing.JMenuItem();
        jMenuItem18 = new javax.swing.JMenuItem();
        jMenu14 = new javax.swing.JMenu();
        jMenuItem24 = new javax.swing.JMenuItem();
        jMenuItem23 = new javax.swing.JMenuItem();
        jMenu2 = new javax.swing.JMenu();
        jMenu20 = new javax.swing.JMenu();
        jMenuItem31 = new javax.swing.JMenuItem();
        jMenuItem33 = new javax.swing.JMenuItem();
        jMenuItem39 = new javax.swing.JMenuItem();
        jMenu21 = new javax.swing.JMenu();
        jMenu22 = new javax.swing.JMenu();
        jMenuItem40 = new javax.swing.JMenuItem();
        jMenuItem41 = new javax.swing.JMenuItem();
        jMenuItem35 = new javax.swing.JMenuItem();
        jMenuItem37 = new javax.swing.JMenuItem();
        jMenuItem36 = new javax.swing.JMenuItem();
        jMenuItem38 = new javax.swing.JMenuItem();
        jMenuItem34 = new javax.swing.JMenuItem();
        jMenu3 = new javax.swing.JMenu();
        jMenu17 = new javax.swing.JMenu();
        jMenu18 = new javax.swing.JMenu();
        jMenu19 = new javax.swing.JMenu();
        jMenu4 = new javax.swing.JMenu();
        jMenu5 = new javax.swing.JMenu();
        jMenu16 = new javax.swing.JMenu();
        jMenuItem42 = new javax.swing.JMenuItem();
        jMenuItem32 = new javax.swing.JMenuItem();
        jMenuItem30 = new javax.swing.JMenuItem();
        javax.swing.JMenuItem aboutMenuItem = new javax.swing.JMenuItem();
        statusPanel = new javax.swing.JPanel();
        javax.swing.JSeparator statusPanelSeparator = new javax.swing.JSeparator();
        statusMessageLabel = new javax.swing.JLabel();
        statusAnimationLabel = new javax.swing.JLabel();
        progressBar = new javax.swing.JProgressBar();

        mainPanel.setBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.RAISED));
        mainPanel.setName("mainPanel"); // NOI18N

        jPanel1.setBorder(javax.swing.BorderFactory.createEtchedBorder());
        jPanel1.setName("jPanel1"); // NOI18N

        jToolBar1.setRollover(true);
        jToolBar1.setName("jToolBar1"); // NOI18N

        jToolBar2.setRollover(true);
        jToolBar2.setName("jToolBar2"); // NOI18N

        jToolBar3.setRollover(true);
        jToolBar3.setName("jToolBar3"); // NOI18N

        jToolBar4.setRollover(true);
        jToolBar4.setName("jToolBar4"); // NOI18N

        org.jdesktop.layout.GroupLayout jPanel1Layout = new org.jdesktop.layout.GroupLayout(jPanel1);
        jPanel1.setLayout(jPanel1Layout);
        jPanel1Layout.setHorizontalGroup(
            jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(jPanel1Layout.createSequentialGroup()
                .add(jToolBar1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 100, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                .add(jToolBar2, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 100, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.UNRELATED)
                .add(jToolBar3, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 100, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                .add(33, 33, 33)
                .add(jToolBar4, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 100, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(83, Short.MAX_VALUE))
        );
        jPanel1Layout.setVerticalGroup(
            jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(jPanel1Layout.createSequentialGroup()
                .add(jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                    .add(jToolBar1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 25, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                    .add(jToolBar2, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 25, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                    .add(jToolBar3, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 25, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                    .add(jToolBar4, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 25, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        MainPanel.setName("MainPanel"); // NOI18N

        org.jdesktop.layout.GroupLayout MainPanelLayout = new org.jdesktop.layout.GroupLayout(MainPanel);
        MainPanel.setLayout(MainPanelLayout);
        MainPanelLayout.setHorizontalGroup(
            MainPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(0, 536, Short.MAX_VALUE)
        );
        MainPanelLayout.setVerticalGroup(
            MainPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(0, 363, Short.MAX_VALUE)
        );

        org.jdesktop.layout.GroupLayout mainPanelLayout = new org.jdesktop.layout.GroupLayout(mainPanel);
        mainPanel.setLayout(mainPanelLayout);
        mainPanelLayout.setHorizontalGroup(
            mainPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(jPanel1, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
            .add(MainPanel, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
        );
        mainPanelLayout.setVerticalGroup(
            mainPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(mainPanelLayout.createSequentialGroup()
                .add(jPanel1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 30, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .add(MainPanel, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
        );

        menuBar.setName("menuBar"); // NOI18N

        java.util.ResourceBundle bundle = java.util.ResourceBundle.getBundle("afroschool/resources/french/french_label"); // NOI18N
        fileMenu.setText(bundle.getString("parameters")); // NOI18N
        fileMenu.setActionCommand(bundle.getString("parameters")); // NOI18N
        fileMenu.setName("fileMenu"); // NOI18N

        jMenu9.setText(bundle.getString("config")); // NOI18N
        jMenu9.setName("jMenu9"); // NOI18N

        jMenuItem13.setText(bundle.getString("academic_year")); // NOI18N
        jMenuItem13.setName("jMenuItem13"); // NOI18N
        jMenu9.add(jMenuItem13);
        jMenuItem13.getAccessibleContext().setAccessibleName(bundle.getString("academic_year")); // NOI18N

        jMenuItem14.setText(bundle.getString("system")); // NOI18N
        org.jdesktop.application.ResourceMap resourceMap = org.jdesktop.application.Application.getInstance(afroschool.AfroSchoolApp.class).getContext().getResourceMap(AfroSchoolView.class);
        jMenuItem14.setActionCommand(resourceMap.getString("jMenuItem14.actionCommand")); // NOI18N
        jMenuItem14.setName("jMenuItem14"); // NOI18N
        jMenu9.add(jMenuItem14);
        jMenuItem14.getAccessibleContext().setAccessibleName(bundle.getString("system")); // NOI18N

        fileMenu.add(jMenu9);
        jMenu9.getAccessibleContext().setAccessibleName(bundle.getString("config")); // NOI18N

        jMenu11.setText(bundle.getString("states")); // NOI18N
        jMenu11.setName("jMenu11"); // NOI18N

        javax.swing.ActionMap actionMap = org.jdesktop.application.Application.getInstance(afroschool.AfroSchoolApp.class).getContext().getActionMap(AfroSchoolView.class, this);
        jMenuItem1.setAction(actionMap.get("showCountryForm")); // NOI18N
        jMenuItem1.setText(bundle.getString("country")); // NOI18N
        jMenuItem1.setName("jMenuItem1"); // NOI18N
        jMenuItem1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMenuItem1ActionPerformed(evt);
            }
        });
        jMenu11.add(jMenuItem1);
        jMenuItem1.getAccessibleContext().setAccessibleName(bundle.getString("country")); // NOI18N

        jMenuItem2.setText(bundle.getString("states")); // NOI18N
        jMenuItem2.setName("jMenuItem2"); // NOI18N
        jMenu11.add(jMenuItem2);
        jMenuItem2.getAccessibleContext().setAccessibleName(bundle.getString("states")); // NOI18N

        jMenuItem3.setText(bundle.getString("department")); // NOI18N
        jMenuItem3.setName("jMenuItem3"); // NOI18N
        jMenu11.add(jMenuItem3);
        jMenuItem3.getAccessibleContext().setAccessibleName(bundle.getString("department")); // NOI18N

        fileMenu.add(jMenu11);
        jMenu11.getAccessibleContext().setAccessibleName(bundle.getString("states")); // NOI18N

        jMenu6.setText(bundle.getString("etab_structures")); // NOI18N
        jMenu6.setName("jMenu6"); // NOI18N

        jMenuItem4.setText(bundle.getString("structures")); // NOI18N
        jMenuItem4.setName("jMenuItem4"); // NOI18N
        jMenu6.add(jMenuItem4);

        jMenuItem5.setText(bundle.getString("establishment")); // NOI18N
        jMenuItem5.setName("jMenuItem5"); // NOI18N
        jMenu6.add(jMenuItem5);

        jMenuItem6.setText(bundle.getString("filiere")); // NOI18N
        jMenuItem6.setName("jMenuItem6"); // NOI18N
        jMenu6.add(jMenuItem6);

        jMenuItem7.setText(bundle.getString("classes")); // NOI18N
        jMenuItem7.setName("jMenuItem7"); // NOI18N
        jMenu6.add(jMenuItem7);

        fileMenu.add(jMenu6);
        jMenu6.getAccessibleContext().setAccessibleName(bundle.getString("structures")); // NOI18N

        jMenu7.setText(bundle.getString("finances")); // NOI18N
        jMenu7.setName("jMenu7"); // NOI18N

        jMenuItem8.setText(bundle.getString("paymengrid")); // NOI18N
        jMenuItem8.setName("jMenuItem8"); // NOI18N
        jMenu7.add(jMenuItem8);
        jMenuItem8.getAccessibleContext().setAccessibleName(bundle.getString("paymengrid")); // NOI18N

        jMenuItem9.setText(bundle.getString("banks")); // NOI18N
        jMenuItem9.setName("jMenuItem9"); // NOI18N
        jMenu7.add(jMenuItem9);
        jMenuItem9.getAccessibleContext().setAccessibleName(bundle.getString("banks")); // NOI18N

        fileMenu.add(jMenu7);
        jMenu7.getAccessibleContext().setAccessibleName(bundle.getString("finances")); // NOI18N

        jMenu8.setText(bundle.getString("exam")); // NOI18N
        jMenu8.setName("jMenu8"); // NOI18N

        jMenuItem10.setText(bundle.getString("programm")); // NOI18N
        jMenuItem10.setName("jMenuItem10"); // NOI18N
        jMenu8.add(jMenuItem10);
        jMenuItem10.getAccessibleContext().setAccessibleName(bundle.getString("programm")); // NOI18N

        jMenuItem11.setAction(actionMap.get("CallCoursForm")); // NOI18N
        jMenuItem11.setText(bundle.getString("coursesM")); // NOI18N
        jMenuItem11.setName("jMenuItem11"); // NOI18N
        jMenuItem11.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMenuItem11ActionPerformed(evt);
            }
        });
        jMenu8.add(jMenuItem11);
        jMenuItem11.getAccessibleContext().setAccessibleName(bundle.getString("coursesM")); // NOI18N

        jMenuItem12.setText(bundle.getString("evaluations")); // NOI18N
        jMenuItem12.setName("jMenuItem12"); // NOI18N
        jMenu8.add(jMenuItem12);
        jMenuItem12.getAccessibleContext().setAccessibleName(bundle.getString("evaluations")); // NOI18N

        fileMenu.add(jMenu8);

        jMenu1.setText(bundle.getString("course_planning")); // NOI18N
        jMenu1.setActionCommand(resourceMap.getString("jMenu1.actionCommand")); // NOI18N
        jMenu1.setName("jMenu1"); // NOI18N

        jMenuItem27.setText(bundle.getString("teachers")); // NOI18N
        jMenuItem27.setName("jMenuItem27"); // NOI18N
        jMenu1.add(jMenuItem27);
        jMenuItem27.getAccessibleContext().setAccessibleName(bundle.getString("teachers")); // NOI18N

        jMenuItem28.setText(bundle.getString("setCourse")); // NOI18N
        jMenuItem28.setActionCommand(bundle.getString("setcoursetoteacher")); // NOI18N
        jMenuItem28.setName("jMenuItem28"); // NOI18N
        jMenu1.add(jMenuItem28);

        jMenuItem29.setText(bundle.getString("consults")); // NOI18N
        jMenuItem29.setName("jMenuItem29"); // NOI18N
        jMenu1.add(jMenuItem29);
        jMenuItem29.getAccessibleContext().setAccessibleName(bundle.getString("views")); // NOI18N

        fileMenu.add(jMenu1);
        jMenu1.getAccessibleContext().setAccessibleName(bundle.getString("course_planning")); // NOI18N

        exitMenuItem.setAction(actionMap.get("quit")); // NOI18N
        exitMenuItem.setText(bundle.getString("exit")); // NOI18N
        exitMenuItem.setName("exitMenuItem"); // NOI18N
        fileMenu.add(exitMenuItem);
        exitMenuItem.getAccessibleContext().setAccessibleName(bundle.getString("exit")); // NOI18N

        menuBar.add(fileMenu);
        fileMenu.getAccessibleContext().setAccessibleName(bundle.getString("parameters")); // NOI18N

        helpMenu.setText(bundle.getString("enrollment")); // NOI18N
        helpMenu.setName("helpMenu"); // NOI18N

        jMenu10.setText(bundle.getString("admission")); // NOI18N
        jMenu10.setName("jMenu10"); // NOI18N

        jMenuItem20.setText(bundle.getString("firstEnrollment")); // NOI18N
        jMenuItem20.setName("jMenuItem20"); // NOI18N
        jMenu10.add(jMenuItem20);
        jMenuItem20.getAccessibleContext().setAccessibleName(bundle.getString("firstEnrollment")); // NOI18N

        jMenuItem22.setText(bundle.getString("enrollInsameorupperlevel")); // NOI18N
        jMenuItem22.setName("jMenuItem22"); // NOI18N
        jMenu10.add(jMenuItem22);
        jMenuItem22.getAccessibleContext().setAccessibleName(bundle.getString("enrollInsameorupperlevel")); // NOI18N

        helpMenu.add(jMenu10);
        jMenu10.getAccessibleContext().setAccessibleName(bundle.getString("admission")); // NOI18N

        jMenu15.setText(bundle.getString("unenrollment")); // NOI18N
        jMenu15.setActionCommand(resourceMap.getString("jMenu15.actionCommand")); // NOI18N
        jMenu15.setName("jMenu15"); // NOI18N

        jMenuItem25.setText(bundle.getString("inClasse")); // NOI18N
        jMenuItem25.setName("jMenuItem25"); // NOI18N
        jMenu15.add(jMenuItem25);

        jMenuItem26.setText(bundle.getString("exclude")); // NOI18N
        jMenuItem26.setName("jMenuItem26"); // NOI18N
        jMenu15.add(jMenuItem26);

        helpMenu.add(jMenu15);
        jMenu15.getAccessibleContext().setAccessibleName(bundle.getString("unenrollment")); // NOI18N

        jMenu12.setText(bundle.getString("payment")); // NOI18N
        jMenu12.setName("jMenu12"); // NOI18N

        jMenuItem21.setText(bundle.getString("scolarity")); // NOI18N
        jMenuItem21.setName("jMenuItem21"); // NOI18N
        jMenu12.add(jMenuItem21);

        jMenuItem19.setText(bundle.getString("otherfees")); // NOI18N
        jMenuItem19.setName("jMenuItem19"); // NOI18N
        jMenu12.add(jMenuItem19);

        helpMenu.add(jMenu12);
        jMenu12.getAccessibleContext().setAccessibleName(bundle.getString("payment")); // NOI18N

        jMenu13.setText(bundle.getString("official_documents")); // NOI18N
        jMenu13.setName("jMenu13"); // NOI18N

        jMenuItem15.setText(bundle.getString("generation")); // NOI18N
        jMenuItem15.setName("jMenuItem15"); // NOI18N
        jMenu13.add(jMenuItem15);

        jMenuItem16.setText(bundle.getString("quitusforpayment")); // NOI18N
        jMenuItem16.setName("jMenuItem16"); // NOI18N
        jMenu13.add(jMenuItem16);

        jMenuItem17.setText(bundle.getString("studentscard")); // NOI18N
        jMenuItem17.setName("jMenuItem17"); // NOI18N
        jMenu13.add(jMenuItem17);

        jMenuItem18.setText(bundle.getString("certificates")); // NOI18N
        jMenuItem18.setName("jMenuItem18"); // NOI18N
        jMenu13.add(jMenuItem18);

        helpMenu.add(jMenu13);
        jMenu13.getAccessibleContext().setAccessibleName(bundle.getString("official_documents")); // NOI18N

        jMenu14.setText(bundle.getString("searches")); // NOI18N
        jMenu14.setName("jMenu14"); // NOI18N

        jMenuItem24.setText(bundle.getString("multi_criteria_search")); // NOI18N
        jMenuItem24.setName("jMenuItem24"); // NOI18N
        jMenu14.add(jMenuItem24);
        jMenuItem24.getAccessibleContext().setAccessibleName(bundle.getString("multi_criteria_search")); // NOI18N

        jMenuItem23.setText(bundle.getString("search_by_matricule")); // NOI18N
        jMenuItem23.setName("jMenuItem23"); // NOI18N
        jMenu14.add(jMenuItem23);
        jMenuItem23.getAccessibleContext().setAccessibleName(bundle.getString("search_by_matricule")); // NOI18N

        helpMenu.add(jMenu14);
        jMenu14.getAccessibleContext().setAccessibleName(bundle.getString("searches")); // NOI18N

        menuBar.add(helpMenu);
        helpMenu.getAccessibleContext().setAccessibleName(bundle.getString("enrollment")); // NOI18N

        jMenu2.setText(bundle.getString("exam")); // NOI18N
        jMenu2.setName("jMenu2"); // NOI18N

        jMenu20.setText(bundle.getString("security")); // NOI18N
        jMenu20.setName("jMenu20"); // NOI18N

        jMenuItem31.setText("null");
        jMenuItem31.setName("jMenuItem31"); // NOI18N
        jMenu20.add(jMenuItem31);

        jMenuItem33.setText("null");
        jMenuItem33.setName("jMenuItem33"); // NOI18N
        jMenu20.add(jMenuItem33);

        jMenuItem39.setText("null");
        jMenuItem39.setName("jMenuItem39"); // NOI18N
        jMenu20.add(jMenuItem39);

        jMenu2.add(jMenu20);
        jMenu20.getAccessibleContext().setAccessibleName(bundle.getString("security")); // NOI18N

        jMenu21.setText(bundle.getString("markofevaluations")); // NOI18N
        jMenu21.setName("jMenu21"); // NOI18N

        jMenu22.setText(bundle.getString("hiddencode")); // NOI18N
        jMenu22.setName("jMenu22"); // NOI18N

        jMenuItem40.setText(bundle.getString("order")); // NOI18N
        jMenuItem40.setName("jMenuItem40"); // NOI18N
        jMenu22.add(jMenuItem40);
        jMenuItem40.getAccessibleContext().setAccessibleName(bundle.getString("order")); // NOI18N

        jMenuItem41.setText(bundle.getString("unorder")); // NOI18N
        jMenuItem41.setName("jMenuItem41"); // NOI18N
        jMenu22.add(jMenuItem41);
        jMenuItem41.getAccessibleContext().setAccessibleName(bundle.getString("unorder")); // NOI18N

        jMenu21.add(jMenu22);
        jMenu22.getAccessibleContext().setAccessibleName(bundle.getString("hiddencode")); // NOI18N

        jMenuItem35.setText(bundle.getString("inputmarksonhiddencode")); // NOI18N
        jMenuItem35.setName("jMenuItem35"); // NOI18N
        jMenu21.add(jMenuItem35);
        jMenuItem35.getAccessibleContext().setAccessibleName(bundle.getString("inputmarksonhiddencode")); // NOI18N

        jMenuItem37.setText(bundle.getString("inputmarkbyname")); // NOI18N
        jMenuItem37.setName("jMenuItem37"); // NOI18N
        jMenu21.add(jMenuItem37);
        jMenuItem37.getAccessibleContext().setAccessibleName(bundle.getString("inputmarkbyname")); // NOI18N

        jMenuItem36.setText(bundle.getString("addpointonmarks")); // NOI18N
        jMenuItem36.setName("jMenuItem36"); // NOI18N
        jMenu21.add(jMenuItem36);
        jMenuItem36.getAccessibleContext().setAccessibleName(bundle.getString("addpointonmarks")); // NOI18N

        jMenuItem38.setText(bundle.getString("deliberation")); // NOI18N
        jMenuItem38.setName("jMenuItem38"); // NOI18N
        jMenu21.add(jMenuItem38);
        jMenuItem38.getAccessibleContext().setAccessibleName(bundle.getString("deliberation")); // NOI18N

        jMenuItem34.setText(bundle.getString("complains")); // NOI18N
        jMenuItem34.setName("jMenuItem34"); // NOI18N
        jMenu21.add(jMenuItem34);
        jMenuItem34.getAccessibleContext().setAccessibleName(bundle.getString("complains")); // NOI18N

        jMenu2.add(jMenu21);
        jMenu21.getAccessibleContext().setAccessibleName(bundle.getString("markofevaluations")); // NOI18N

        menuBar.add(jMenu2);
        jMenu2.getAccessibleContext().setAccessibleName(bundle.getString("exam")); // NOI18N

        jMenu3.setText(bundle.getString("report")); // NOI18N
        jMenu3.setName("jMenu3"); // NOI18N

        jMenu17.setText(bundle.getString("enrollment")); // NOI18N
        jMenu17.setName("jMenu17"); // NOI18N
        jMenu3.add(jMenu17);
        jMenu17.getAccessibleContext().setAccessibleName(bundle.getString("enrollment")); // NOI18N

        jMenu18.setText(bundle.getString("exam")); // NOI18N
        jMenu18.setName("jMenu18"); // NOI18N
        jMenu3.add(jMenu18);
        jMenu18.getAccessibleContext().setAccessibleName(bundle.getString("exam")); // NOI18N

        jMenu19.setText(bundle.getString("finances")); // NOI18N
        jMenu19.setName("jMenu19"); // NOI18N
        jMenu3.add(jMenu19);
        jMenu19.getAccessibleContext().setAccessibleName(bundle.getString("finances")); // NOI18N

        menuBar.add(jMenu3);
        jMenu3.getAccessibleContext().setAccessibleName(bundle.getString("report")); // NOI18N

        jMenu4.setText(bundle.getString("statistique")); // NOI18N
        jMenu4.setName("jMenu4"); // NOI18N
        menuBar.add(jMenu4);
        jMenu4.getAccessibleContext().setAccessibleName(bundle.getString("statistic")); // NOI18N

        jMenu5.setText(bundle.getString("system")); // NOI18N
        jMenu5.setName("jMenu5"); // NOI18N
        menuBar.add(jMenu5);
        jMenu5.getAccessibleContext().setAccessibleName(bundle.getString("system")); // NOI18N

        jMenu16.setText(bundle.getString("help")); // NOI18N
        jMenu16.setName("jMenu16"); // NOI18N

        jMenuItem42.setText(bundle.getString("documentation")); // NOI18N
        jMenuItem42.setName("jMenuItem42"); // NOI18N
        jMenu16.add(jMenuItem42);

        jMenuItem32.setText(bundle.getString("licence")); // NOI18N
        jMenuItem32.setName("jMenuItem32"); // NOI18N
        jMenu16.add(jMenuItem32);

        jMenuItem30.setText(bundle.getString("checkforupdate")); // NOI18N
        jMenuItem30.setName("jMenuItem30"); // NOI18N
        jMenu16.add(jMenuItem30);

        aboutMenuItem.setText(resourceMap.getString("aboutMenuItem.text")); // NOI18N
        aboutMenuItem.setName("aboutMenuItem"); // NOI18N
        jMenu16.add(aboutMenuItem);
        aboutMenuItem.getAccessibleContext().setAccessibleName(bundle.getString("about")); // NOI18N

        menuBar.add(jMenu16);
        jMenu16.getAccessibleContext().setAccessibleName(bundle.getString("help")); // NOI18N

        statusPanel.setName("statusPanel"); // NOI18N

        statusPanelSeparator.setName("statusPanelSeparator"); // NOI18N

        statusMessageLabel.setName("statusMessageLabel"); // NOI18N

        statusAnimationLabel.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);
        statusAnimationLabel.setName("statusAnimationLabel"); // NOI18N

        progressBar.setName("progressBar"); // NOI18N

        org.jdesktop.layout.GroupLayout statusPanelLayout = new org.jdesktop.layout.GroupLayout(statusPanel);
        statusPanel.setLayout(statusPanelLayout);
        statusPanelLayout.setHorizontalGroup(
            statusPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(statusPanelSeparator, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 542, Short.MAX_VALUE)
            .add(statusPanelLayout.createSequentialGroup()
                .addContainerGap()
                .add(statusMessageLabel)
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED, 418, Short.MAX_VALUE)
                .add(progressBar, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                .add(statusAnimationLabel)
                .addContainerGap())
        );
        statusPanelLayout.setVerticalGroup(
            statusPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(statusPanelLayout.createSequentialGroup()
                .add(statusPanelSeparator, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 2, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .add(statusPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                    .add(statusMessageLabel)
                    .add(statusAnimationLabel)
                    .add(progressBar, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                .add(3, 3, 3))
        );

        setComponent(mainPanel);
        setMenuBar(menuBar);
        setStatusBar(statusPanel);
    }// </editor-fold>//GEN-END:initComponents

private void jMenuItem1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItem1ActionPerformed
// TODO add your handling code here:
    
}//GEN-LAST:event_jMenuItem1ActionPerformed

private void jMenuItem11ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItem11ActionPerformed
// TODO add your handling code here:
}//GEN-LAST:event_jMenuItem11ActionPerformed

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JPanel MainPanel;
    private javax.swing.JMenu jMenu1;
    private javax.swing.JMenu jMenu10;
    private javax.swing.JMenu jMenu11;
    private javax.swing.JMenu jMenu12;
    private javax.swing.JMenu jMenu13;
    private javax.swing.JMenu jMenu14;
    private javax.swing.JMenu jMenu15;
    private javax.swing.JMenu jMenu16;
    private javax.swing.JMenu jMenu17;
    private javax.swing.JMenu jMenu18;
    private javax.swing.JMenu jMenu19;
    private javax.swing.JMenu jMenu2;
    private javax.swing.JMenu jMenu20;
    private javax.swing.JMenu jMenu21;
    private javax.swing.JMenu jMenu22;
    private javax.swing.JMenu jMenu3;
    private javax.swing.JMenu jMenu4;
    private javax.swing.JMenu jMenu5;
    private javax.swing.JMenu jMenu6;
    private javax.swing.JMenu jMenu7;
    private javax.swing.JMenu jMenu8;
    private javax.swing.JMenu jMenu9;
    private javax.swing.JMenuItem jMenuItem1;
    private javax.swing.JMenuItem jMenuItem10;
    private javax.swing.JMenuItem jMenuItem11;
    private javax.swing.JMenuItem jMenuItem12;
    private javax.swing.JMenuItem jMenuItem13;
    private javax.swing.JMenuItem jMenuItem14;
    private javax.swing.JMenuItem jMenuItem15;
    private javax.swing.JMenuItem jMenuItem16;
    private javax.swing.JMenuItem jMenuItem17;
    private javax.swing.JMenuItem jMenuItem18;
    private javax.swing.JMenuItem jMenuItem19;
    private javax.swing.JMenuItem jMenuItem2;
    private javax.swing.JMenuItem jMenuItem20;
    private javax.swing.JMenuItem jMenuItem21;
    private javax.swing.JMenuItem jMenuItem22;
    private javax.swing.JMenuItem jMenuItem23;
    private javax.swing.JMenuItem jMenuItem24;
    private javax.swing.JMenuItem jMenuItem25;
    private javax.swing.JMenuItem jMenuItem26;
    private javax.swing.JMenuItem jMenuItem27;
    private javax.swing.JMenuItem jMenuItem28;
    private javax.swing.JMenuItem jMenuItem29;
    private javax.swing.JMenuItem jMenuItem3;
    private javax.swing.JMenuItem jMenuItem30;
    private javax.swing.JMenuItem jMenuItem31;
    private javax.swing.JMenuItem jMenuItem32;
    private javax.swing.JMenuItem jMenuItem33;
    private javax.swing.JMenuItem jMenuItem34;
    private javax.swing.JMenuItem jMenuItem35;
    private javax.swing.JMenuItem jMenuItem36;
    private javax.swing.JMenuItem jMenuItem37;
    private javax.swing.JMenuItem jMenuItem38;
    private javax.swing.JMenuItem jMenuItem39;
    private javax.swing.JMenuItem jMenuItem4;
    private javax.swing.JMenuItem jMenuItem40;
    private javax.swing.JMenuItem jMenuItem41;
    private javax.swing.JMenuItem jMenuItem42;
    private javax.swing.JMenuItem jMenuItem5;
    private javax.swing.JMenuItem jMenuItem6;
    private javax.swing.JMenuItem jMenuItem7;
    private javax.swing.JMenuItem jMenuItem8;
    private javax.swing.JMenuItem jMenuItem9;
    private javax.swing.JPanel jPanel1;
    private javax.swing.JToolBar jToolBar1;
    private javax.swing.JToolBar jToolBar2;
    private javax.swing.JToolBar jToolBar3;
    private javax.swing.JToolBar jToolBar4;
    private javax.swing.JPanel mainPanel;
    private javax.swing.JMenuBar menuBar;
    private javax.swing.JProgressBar progressBar;
    private javax.swing.JLabel statusAnimationLabel;
    private javax.swing.JLabel statusMessageLabel;
    private javax.swing.JPanel statusPanel;
    // End of variables declaration//GEN-END:variables

    private final Timer messageTimer;
    private final Timer busyIconTimer;
    private final Icon idleIcon;
    private final Icon[] busyIcons = new Icon[15];
    private int busyIconIndex = 0;
    private JFrame contentf;
    private JDialog aboutBox;
}
=======
/*AfroSchool
 * View.java
 */

package afroschool;

import org.jdesktop.application.Action;
import org.jdesktop.application.ResourceMap;
import org.jdesktop.application.SingleFrameApplication;
import org.jdesktop.application.FrameView;
import org.jdesktop.application.TaskMonitor;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.Timer;
import javax.swing.Icon;
import javax.swing.JDialog;
import javax.swing.JFrame;

/**
 * The application's main frame.
 */
public class AfroSchoolView extends FrameView {

    public AfroSchoolView(SingleFrameApplication app) {
        super(app);

        initComponents();

        // status bar initialization - message timeout, idle icon and busy animation, etc
        ResourceMap resourceMap = getResourceMap();
        int messageTimeout = resourceMap.getInteger("StatusBar.messageTimeout");
        messageTimer = new Timer(messageTimeout, new ActionListener() {
            public void actionPerformed(ActionEvent e) {
                statusMessageLabel.setText("");
            }
        });
        messageTimer.setRepeats(false);
        int busyAnimationRate = resourceMap.getInteger("StatusBar.busyAnimationRate");
        for (int i = 0; i < busyIcons.length; i++) {
            busyIcons[i] = resourceMap.getIcon("StatusBar.busyIcons[" + i + "]");
        }
        busyIconTimer = new Timer(busyAnimationRate, new ActionListener() {
            public void actionPerformed(ActionEvent e) {
                busyIconIndex = (busyIconIndex + 1) % busyIcons.length;
                statusAnimationLabel.setIcon(busyIcons[busyIconIndex]);
            }
        });
        idleIcon = resourceMap.getIcon("StatusBar.idleIcon");
        statusAnimationLabel.setIcon(idleIcon);
        progressBar.setVisible(false);

        // connecting action tasks to status bar via TaskMonitor
        TaskMonitor taskMonitor = new TaskMonitor(getApplication().getContext());
        taskMonitor.addPropertyChangeListener(new java.beans.PropertyChangeListener() {
            public void propertyChange(java.beans.PropertyChangeEvent evt) {
                String propertyName = evt.getPropertyName();
                if ("started".equals(propertyName)) {
                    if (!busyIconTimer.isRunning()) {
                        statusAnimationLabel.setIcon(busyIcons[0]);
                        busyIconIndex = 0;
                        busyIconTimer.start();
                    }
                    progressBar.setVisible(true);
                    progressBar.setIndeterminate(true);
                } else if ("done".equals(propertyName)) {
                    busyIconTimer.stop();
                    statusAnimationLabel.setIcon(idleIcon);
                    progressBar.setVisible(false);
                    progressBar.setValue(0);
                } else if ("message".equals(propertyName)) {
                    String text = (String)(evt.getNewValue());
                    statusMessageLabel.setText((text == null) ? "" : text);
                    messageTimer.restart();
                } else if ("progress".equals(propertyName)) {
                    int value = (Integer)(evt.getNewValue());
                    progressBar.setVisible(true);
                    progressBar.setIndeterminate(false);
                    progressBar.setValue(value);
                }
            }
        });
    }

    @Action
    public void showAboutBox() {
        if (aboutBox == null) {
            JFrame mainFrame = AfroSchoolApp.getApplication().getMainFrame();
            aboutBox = new AfroSchoolAboutBox(mainFrame);
            aboutBox.setLocationRelativeTo(mainFrame);
        }
        AfroSchoolApp.getApplication().show(aboutBox);
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        mainPanel = new javax.swing.JPanel();
        jPanel1 = new javax.swing.JPanel();
        jToolBar1 = new javax.swing.JToolBar();
        jToolBar2 = new javax.swing.JToolBar();
        jToolBar3 = new javax.swing.JToolBar();
        jToolBar4 = new javax.swing.JToolBar();
        MainPanel = new javax.swing.JPanel();
        menuBar = new javax.swing.JMenuBar();
        javax.swing.JMenu fileMenu = new javax.swing.JMenu();
        jMenu9 = new javax.swing.JMenu();
        jMenuItem13 = new javax.swing.JMenuItem();
        jMenuItem14 = new javax.swing.JMenuItem();
        jMenu11 = new javax.swing.JMenu();
        jMenuItem1 = new javax.swing.JMenuItem();
        jMenuItem2 = new javax.swing.JMenuItem();
        jMenuItem3 = new javax.swing.JMenuItem();
        jMenu6 = new javax.swing.JMenu();
        jMenuItem4 = new javax.swing.JMenuItem();
        jMenuItem5 = new javax.swing.JMenuItem();
        jMenuItem6 = new javax.swing.JMenuItem();
        jMenuItem7 = new javax.swing.JMenuItem();
        jMenu7 = new javax.swing.JMenu();
        jMenuItem8 = new javax.swing.JMenuItem();
        jMenuItem9 = new javax.swing.JMenuItem();
        jMenu8 = new javax.swing.JMenu();
        jMenuItem10 = new javax.swing.JMenuItem();
        jMenuItem11 = new javax.swing.JMenuItem();
        jMenuItem12 = new javax.swing.JMenuItem();
        jMenu1 = new javax.swing.JMenu();
        jMenuItem27 = new javax.swing.JMenuItem();
        jMenuItem28 = new javax.swing.JMenuItem();
        jMenuItem29 = new javax.swing.JMenuItem();
        javax.swing.JMenuItem exitMenuItem = new javax.swing.JMenuItem();
        javax.swing.JMenu helpMenu = new javax.swing.JMenu();
        jMenu10 = new javax.swing.JMenu();
        jMenuItem20 = new javax.swing.JMenuItem();
        jMenuItem22 = new javax.swing.JMenuItem();
        jMenu15 = new javax.swing.JMenu();
        jMenuItem25 = new javax.swing.JMenuItem();
        jMenuItem26 = new javax.swing.JMenuItem();
        jMenu12 = new javax.swing.JMenu();
        jMenuItem21 = new javax.swing.JMenuItem();
        jMenuItem19 = new javax.swing.JMenuItem();
        jMenu13 = new javax.swing.JMenu();
        jMenuItem15 = new javax.swing.JMenuItem();
        jMenuItem16 = new javax.swing.JMenuItem();
        jMenuItem17 = new javax.swing.JMenuItem();
        jMenuItem18 = new javax.swing.JMenuItem();
        jMenu14 = new javax.swing.JMenu();
        jMenuItem24 = new javax.swing.JMenuItem();
        jMenuItem23 = new javax.swing.JMenuItem();
        jMenu2 = new javax.swing.JMenu();
        jMenu20 = new javax.swing.JMenu();
        jMenuItem31 = new javax.swing.JMenuItem();
        jMenuItem33 = new javax.swing.JMenuItem();
        jMenuItem39 = new javax.swing.JMenuItem();
        jMenu21 = new javax.swing.JMenu();
        jMenu22 = new javax.swing.JMenu();
        jMenuItem40 = new javax.swing.JMenuItem();
        jMenuItem41 = new javax.swing.JMenuItem();
        jMenuItem35 = new javax.swing.JMenuItem();
        jMenuItem37 = new javax.swing.JMenuItem();
        jMenuItem36 = new javax.swing.JMenuItem();
        jMenuItem38 = new javax.swing.JMenuItem();
        jMenuItem34 = new javax.swing.JMenuItem();
        jMenu3 = new javax.swing.JMenu();
        jMenu17 = new javax.swing.JMenu();
        jMenu18 = new javax.swing.JMenu();
        jMenu19 = new javax.swing.JMenu();
        jMenu4 = new javax.swing.JMenu();
        jMenu5 = new javax.swing.JMenu();
        jMenu16 = new javax.swing.JMenu();
        jMenuItem30 = new javax.swing.JMenuItem();
        jMenuItem32 = new javax.swing.JMenuItem();
        javax.swing.JMenuItem aboutMenuItem = new javax.swing.JMenuItem();
        statusPanel = new javax.swing.JPanel();
        javax.swing.JSeparator statusPanelSeparator = new javax.swing.JSeparator();
        statusMessageLabel = new javax.swing.JLabel();
        statusAnimationLabel = new javax.swing.JLabel();
        progressBar = new javax.swing.JProgressBar();

        mainPanel.setBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.RAISED));
        mainPanel.setName("mainPanel"); // NOI18N

        jPanel1.setBorder(javax.swing.BorderFactory.createEtchedBorder());
        jPanel1.setName("jPanel1"); // NOI18N

        jToolBar1.setRollover(true);
        jToolBar1.setName("jToolBar1"); // NOI18N

        jToolBar2.setRollover(true);
        jToolBar2.setName("jToolBar2"); // NOI18N

        jToolBar3.setRollover(true);
        jToolBar3.setName("jToolBar3"); // NOI18N

        jToolBar4.setRollover(true);
        jToolBar4.setName("jToolBar4"); // NOI18N

        org.jdesktop.layout.GroupLayout jPanel1Layout = new org.jdesktop.layout.GroupLayout(jPanel1);
        jPanel1.setLayout(jPanel1Layout);
        jPanel1Layout.setHorizontalGroup(
            jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(jPanel1Layout.createSequentialGroup()
                .add(jToolBar1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 100, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                .add(jToolBar2, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 100, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.UNRELATED)
                .add(jToolBar3, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 100, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                .add(33, 33, 33)
                .add(jToolBar4, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 100, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(83, Short.MAX_VALUE))
        );
        jPanel1Layout.setVerticalGroup(
            jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(jPanel1Layout.createSequentialGroup()
                .add(jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                    .add(jToolBar1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 25, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                    .add(jToolBar2, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 25, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                    .add(jToolBar3, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 25, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                    .add(jToolBar4, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 25, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        MainPanel.setName("MainPanel"); // NOI18N

        org.jdesktop.layout.GroupLayout MainPanelLayout = new org.jdesktop.layout.GroupLayout(MainPanel);
        MainPanel.setLayout(MainPanelLayout);
        MainPanelLayout.setHorizontalGroup(
            MainPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(0, 536, Short.MAX_VALUE)
        );
        MainPanelLayout.setVerticalGroup(
            MainPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(0, 363, Short.MAX_VALUE)
        );

        org.jdesktop.layout.GroupLayout mainPanelLayout = new org.jdesktop.layout.GroupLayout(mainPanel);
        mainPanel.setLayout(mainPanelLayout);
        mainPanelLayout.setHorizontalGroup(
            mainPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(jPanel1, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
            .add(MainPanel, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
        );
        mainPanelLayout.setVerticalGroup(
            mainPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(mainPanelLayout.createSequentialGroup()
                .add(jPanel1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 30, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .add(MainPanel, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
        );

        menuBar.setName("menuBar"); // NOI18N

        fileMenu.setText("null");
        fileMenu.setName("fileMenu"); // NOI18N

        jMenu9.setText("null");
        jMenu9.setName("jMenu9"); // NOI18N

        jMenuItem13.setText("null");
        jMenuItem13.setName("jMenuItem13"); // NOI18N
        jMenu9.add(jMenuItem13);

        jMenuItem14.setText("null");
        jMenuItem14.setName("jMenuItem14"); // NOI18N
        jMenu9.add(jMenuItem14);

        fileMenu.add(jMenu9);

        jMenu11.setText("null");
        jMenu11.setName("jMenu11"); // NOI18N

        jMenuItem1.setText("null");
        jMenuItem1.setName("jMenuItem1"); // NOI18N
        jMenu11.add(jMenuItem1);

        jMenuItem2.setText("null");
        jMenuItem2.setName("jMenuItem2"); // NOI18N
        jMenu11.add(jMenuItem2);

        jMenuItem3.setText("null");
        jMenuItem3.setName("jMenuItem3"); // NOI18N
        jMenu11.add(jMenuItem3);

        fileMenu.add(jMenu11);

        jMenu6.setText("null");
        jMenu6.setName("jMenu6"); // NOI18N

        java.util.ResourceBundle bundle = java.util.ResourceBundle.getBundle("afroschool/resources/french/french_label"); // NOI18N
        jMenuItem4.setText(bundle.getString("structures")); // NOI18N
        jMenuItem4.setName("jMenuItem4"); // NOI18N
        jMenu6.add(jMenuItem4);

        jMenuItem5.setText(bundle.getString("establishment")); // NOI18N
        jMenuItem5.setName("jMenuItem5"); // NOI18N
        jMenu6.add(jMenuItem5);

        jMenuItem6.setText(bundle.getString("filiere")); // NOI18N
        jMenuItem6.setName("jMenuItem6"); // NOI18N
        jMenu6.add(jMenuItem6);

        jMenuItem7.setText(bundle.getString("classes")); // NOI18N
        jMenuItem7.setName("jMenuItem7"); // NOI18N
        jMenu6.add(jMenuItem7);

        fileMenu.add(jMenu6);

        jMenu7.setText("null");
        jMenu7.setName("jMenu7"); // NOI18N

        org.jdesktop.application.ResourceMap resourceMap = org.jdesktop.application.Application.getInstance(afroschool.AfroSchoolApp.class).getContext().getResourceMap(AfroSchoolView.class);
        jMenuItem8.setText(resourceMap.getString("jMenuItem8.text")); // NOI18N
        jMenuItem8.setName("jMenuItem8"); // NOI18N
        jMenu7.add(jMenuItem8);

        jMenuItem9.setText(resourceMap.getString("jMenuItem9.text")); // NOI18N
        jMenuItem9.setName("jMenuItem9"); // NOI18N
        jMenu7.add(jMenuItem9);

        fileMenu.add(jMenu7);

        jMenu8.setText(bundle.getString("exam")); // NOI18N
        jMenu8.setName("jMenu8"); // NOI18N

        jMenuItem10.setText("null");
        jMenuItem10.setName("jMenuItem10"); // NOI18N
        jMenu8.add(jMenuItem10);

        jMenuItem11.setText("null");
        jMenuItem11.setName("jMenuItem11"); // NOI18N
        jMenu8.add(jMenuItem11);

        jMenuItem12.setText("null");
        jMenuItem12.setName("jMenuItem12"); // NOI18N
        jMenu8.add(jMenuItem12);

        fileMenu.add(jMenu8);

        jMenu1.setText("null");
        jMenu1.setName("jMenu1"); // NOI18N

        jMenuItem27.setText(resourceMap.getString("jMenuItem27.text")); // NOI18N
        jMenuItem27.setName("jMenuItem27"); // NOI18N
        jMenu1.add(jMenuItem27);

        jMenuItem28.setText(resourceMap.getString("jMenuItem28.text")); // NOI18N
        jMenuItem28.setName("jMenuItem28"); // NOI18N
        jMenu1.add(jMenuItem28);

        jMenuItem29.setText(resourceMap.getString("jMenuItem29.text")); // NOI18N
        jMenuItem29.setName("jMenuItem29"); // NOI18N
        jMenu1.add(jMenuItem29);

        fileMenu.add(jMenu1);

        exitMenuItem.setText("null");
        exitMenuItem.setName("exitMenuItem"); // NOI18N
        fileMenu.add(exitMenuItem);

        menuBar.add(fileMenu);

        helpMenu.setText("null");
        helpMenu.setName("helpMenu"); // NOI18N

        jMenu10.setText("null");
        jMenu10.setName("jMenu10"); // NOI18N

        jMenuItem20.setText(resourceMap.getString("jMenuItem20.text")); // NOI18N
        jMenuItem20.setName("jMenuItem20"); // NOI18N
        jMenu10.add(jMenuItem20);

        jMenuItem22.setText(resourceMap.getString("jMenuItem22.text")); // NOI18N
        jMenuItem22.setName("jMenuItem22"); // NOI18N
        jMenu10.add(jMenuItem22);

        helpMenu.add(jMenu10);

        jMenu15.setText("null");
        jMenu15.setName("jMenu15"); // NOI18N

        jMenuItem25.setText(resourceMap.getString("jMenuItem25.text")); // NOI18N
        jMenuItem25.setName("jMenuItem25"); // NOI18N
        jMenu15.add(jMenuItem25);

        jMenuItem26.setText(resourceMap.getString("jMenuItem26.text")); // NOI18N
        jMenuItem26.setName("jMenuItem26"); // NOI18N
        jMenu15.add(jMenuItem26);

        helpMenu.add(jMenu15);

        jMenu12.setText("null");
        jMenu12.setName("jMenu12"); // NOI18N

        jMenuItem21.setText(resourceMap.getString("jMenuItem21.text")); // NOI18N
        jMenuItem21.setName("jMenuItem21"); // NOI18N
        jMenu12.add(jMenuItem21);

        jMenuItem19.setText(resourceMap.getString("jMenuItem19.text")); // NOI18N
        jMenuItem19.setName("jMenuItem19"); // NOI18N
        jMenu12.add(jMenuItem19);

        helpMenu.add(jMenu12);

        jMenu13.setText("null");
        jMenu13.setName("jMenu13"); // NOI18N

        jMenuItem15.setText(resourceMap.getString("jMenuItem15.text")); // NOI18N
        jMenuItem15.setName("jMenuItem15"); // NOI18N
        jMenu13.add(jMenuItem15);

        jMenuItem16.setText(resourceMap.getString("jMenuItem16.text")); // NOI18N
        jMenuItem16.setName("jMenuItem16"); // NOI18N
        jMenu13.add(jMenuItem16);

        jMenuItem17.setText(resourceMap.getString("jMenuItem17.text")); // NOI18N
        jMenuItem17.setName("jMenuItem17"); // NOI18N
        jMenu13.add(jMenuItem17);

        jMenuItem18.setText(resourceMap.getString("jMenuItem18.text")); // NOI18N
        jMenuItem18.setName("jMenuItem18"); // NOI18N
        jMenu13.add(jMenuItem18);

        helpMenu.add(jMenu13);

        jMenu14.setText("null");
        jMenu14.setName("jMenu14"); // NOI18N

        jMenuItem24.setText("null");
        jMenuItem24.setName("jMenuItem24"); // NOI18N
        jMenu14.add(jMenuItem24);

        jMenuItem23.setText("null");
        jMenuItem23.setName("jMenuItem23"); // NOI18N
        jMenu14.add(jMenuItem23);

        helpMenu.add(jMenu14);

        menuBar.add(helpMenu);

        jMenu2.setText("null");
        jMenu2.setName("jMenu2"); // NOI18N

        jMenu20.setText("null");
        jMenu20.setName("jMenu20"); // NOI18N

        jMenuItem31.setText("null");
        jMenuItem31.setName("jMenuItem31"); // NOI18N
        jMenu20.add(jMenuItem31);

        jMenuItem33.setText("null");
        jMenuItem33.setName("jMenuItem33"); // NOI18N
        jMenu20.add(jMenuItem33);

        jMenuItem39.setText("null");
        jMenuItem39.setName("jMenuItem39"); // NOI18N
        jMenu20.add(jMenuItem39);

        jMenu2.add(jMenu20);

        jMenu21.setText("null");
        jMenu21.setName("jMenu21"); // NOI18N

        jMenu22.setText("null");
        jMenu22.setName("jMenu22"); // NOI18N

        jMenuItem40.setText("null");
        jMenuItem40.setName("jMenuItem40"); // NOI18N
        jMenu22.add(jMenuItem40);

        jMenuItem41.setText("null");
        jMenuItem41.setName("jMenuItem41"); // NOI18N
        jMenu22.add(jMenuItem41);

        jMenu21.add(jMenu22);

        jMenuItem35.setText("null");
        jMenuItem35.setName("jMenuItem35"); // NOI18N
        jMenu21.add(jMenuItem35);

        jMenuItem37.setText("null");
        jMenuItem37.setName("jMenuItem37"); // NOI18N
        jMenu21.add(jMenuItem37);

        jMenuItem36.setText("null");
        jMenuItem36.setName("jMenuItem36"); // NOI18N
        jMenu21.add(jMenuItem36);

        jMenuItem38.setText("null");
        jMenuItem38.setName("jMenuItem38"); // NOI18N
        jMenu21.add(jMenuItem38);

        jMenuItem34.setText("null");
        jMenuItem34.setName("jMenuItem34"); // NOI18N
        jMenu21.add(jMenuItem34);

        jMenu2.add(jMenu21);

        menuBar.add(jMenu2);

        jMenu3.setText("null");
        jMenu3.setName("jMenu3"); // NOI18N

        jMenu17.setText("null");
        jMenu17.setName("jMenu17"); // NOI18N
        jMenu3.add(jMenu17);

        jMenu18.setText("null");
        jMenu18.setName("jMenu18"); // NOI18N
        jMenu3.add(jMenu18);

        jMenu19.setText("null");
        jMenu19.setName("jMenu19"); // NOI18N
        jMenu3.add(jMenu19);

        menuBar.add(jMenu3);

        jMenu4.setText(bundle.getString("statistique")); // NOI18N
        jMenu4.setName("jMenu4"); // NOI18N
        menuBar.add(jMenu4);

        jMenu5.setText(bundle.getString("system")); // NOI18N
        jMenu5.setName("jMenu5"); // NOI18N
        menuBar.add(jMenu5);

        jMenu16.setText(bundle.getString("help")); // NOI18N
        jMenu16.setName("jMenu16"); // NOI18N

        jMenuItem30.setText(resourceMap.getString("jMenuItem30.text")); // NOI18N
        jMenuItem30.setName("jMenuItem30"); // NOI18N
        jMenu16.add(jMenuItem30);

        jMenuItem32.setText("Item");
        jMenuItem32.setName("jMenuItem32"); // NOI18N
        jMenu16.add(jMenuItem32);

        aboutMenuItem.setText(resourceMap.getString("aboutMenuItem.text")); // NOI18N
        aboutMenuItem.setName("aboutMenuItem"); // NOI18N
        jMenu16.add(aboutMenuItem);

        menuBar.add(jMenu16);

        statusPanel.setName("statusPanel"); // NOI18N

        statusPanelSeparator.setName("statusPanelSeparator"); // NOI18N

        statusMessageLabel.setName("statusMessageLabel"); // NOI18N

        statusAnimationLabel.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);
        statusAnimationLabel.setName("statusAnimationLabel"); // NOI18N

        progressBar.setName("progressBar"); // NOI18N

        org.jdesktop.layout.GroupLayout statusPanelLayout = new org.jdesktop.layout.GroupLayout(statusPanel);
        statusPanel.setLayout(statusPanelLayout);
        statusPanelLayout.setHorizontalGroup(
            statusPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(statusPanelSeparator, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 542, Short.MAX_VALUE)
            .add(statusPanelLayout.createSequentialGroup()
                .addContainerGap()
                .add(statusMessageLabel)
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED, 418, Short.MAX_VALUE)
                .add(progressBar, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                .add(statusAnimationLabel)
                .addContainerGap())
        );
        statusPanelLayout.setVerticalGroup(
            statusPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(statusPanelLayout.createSequentialGroup()
                .add(statusPanelSeparator, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 2, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .add(statusPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                    .add(statusMessageLabel)
                    .add(statusAnimationLabel)
                    .add(progressBar, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                .add(3, 3, 3))
        );

        setComponent(mainPanel);
        setMenuBar(menuBar);
        setStatusBar(statusPanel);
    }// </editor-fold>//GEN-END:initComponents

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JPanel MainPanel;
    private javax.swing.JMenu jMenu1;
    private javax.swing.JMenu jMenu10;
    private javax.swing.JMenu jMenu11;
    private javax.swing.JMenu jMenu12;
    private javax.swing.JMenu jMenu13;
    private javax.swing.JMenu jMenu14;
    private javax.swing.JMenu jMenu15;
    private javax.swing.JMenu jMenu16;
    private javax.swing.JMenu jMenu17;
    private javax.swing.JMenu jMenu18;
    private javax.swing.JMenu jMenu19;
    private javax.swing.JMenu jMenu2;
    private javax.swing.JMenu jMenu20;
    private javax.swing.JMenu jMenu21;
    private javax.swing.JMenu jMenu22;
    private javax.swing.JMenu jMenu3;
    private javax.swing.JMenu jMenu4;
    private javax.swing.JMenu jMenu5;
    private javax.swing.JMenu jMenu6;
    private javax.swing.JMenu jMenu7;
    private javax.swing.JMenu jMenu8;
    private javax.swing.JMenu jMenu9;
    private javax.swing.JMenuItem jMenuItem1;
    private javax.swing.JMenuItem jMenuItem10;
    private javax.swing.JMenuItem jMenuItem11;
    private javax.swing.JMenuItem jMenuItem12;
    private javax.swing.JMenuItem jMenuItem13;
    private javax.swing.JMenuItem jMenuItem14;
    private javax.swing.JMenuItem jMenuItem15;
    private javax.swing.JMenuItem jMenuItem16;
    private javax.swing.JMenuItem jMenuItem17;
    private javax.swing.JMenuItem jMenuItem18;
    private javax.swing.JMenuItem jMenuItem19;
    private javax.swing.JMenuItem jMenuItem2;
    private javax.swing.JMenuItem jMenuItem20;
    private javax.swing.JMenuItem jMenuItem21;
    private javax.swing.JMenuItem jMenuItem22;
    private javax.swing.JMenuItem jMenuItem23;
    private javax.swing.JMenuItem jMenuItem24;
    private javax.swing.JMenuItem jMenuItem25;
    private javax.swing.JMenuItem jMenuItem26;
    private javax.swing.JMenuItem jMenuItem27;
    private javax.swing.JMenuItem jMenuItem28;
    private javax.swing.JMenuItem jMenuItem29;
    private javax.swing.JMenuItem jMenuItem3;
    private javax.swing.JMenuItem jMenuItem30;
    private javax.swing.JMenuItem jMenuItem31;
    private javax.swing.JMenuItem jMenuItem32;
    private javax.swing.JMenuItem jMenuItem33;
    private javax.swing.JMenuItem jMenuItem34;
    private javax.swing.JMenuItem jMenuItem35;
    private javax.swing.JMenuItem jMenuItem36;
    private javax.swing.JMenuItem jMenuItem37;
    private javax.swing.JMenuItem jMenuItem38;
    private javax.swing.JMenuItem jMenuItem39;
    private javax.swing.JMenuItem jMenuItem4;
    private javax.swing.JMenuItem jMenuItem40;
    private javax.swing.JMenuItem jMenuItem41;
    private javax.swing.JMenuItem jMenuItem5;
    private javax.swing.JMenuItem jMenuItem6;
    private javax.swing.JMenuItem jMenuItem7;
    private javax.swing.JMenuItem jMenuItem8;
    private javax.swing.JMenuItem jMenuItem9;
    private javax.swing.JPanel jPanel1;
    private javax.swing.JToolBar jToolBar1;
    private javax.swing.JToolBar jToolBar2;
    private javax.swing.JToolBar jToolBar3;
    private javax.swing.JToolBar jToolBar4;
    private javax.swing.JPanel mainPanel;
    private javax.swing.JMenuBar menuBar;
    private javax.swing.JProgressBar progressBar;
    private javax.swing.JLabel statusAnimationLabel;
    private javax.swing.JLabel statusMessageLabel;
    private javax.swing.JPanel statusPanel;
    // End of variables declaration//GEN-END:variables

    private final Timer messageTimer;
    private final Timer busyIconTimer;
    private final Icon idleIcon;
    private final Icon[] busyIcons = new Icon[15];
    private int busyIconIndex = 0;

    private JDialog aboutBox;
}
>>>>>>> .r11
